/**
 * Created by Administrator on 2017/6/28.
 */
var mongoose = require('../db/db');
var Schema = mongoose.Schema;

var CategorySchema = new Schema({
  name: {
    type: String,
    unique: true
  },
  movies: [{
    type: Schema.Types.ObjectId,
    ref: 'Movie'
  }],
  time: Date
});

module.exports = CategorySchema;